home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / dopus412-gpl / dopus_disk / dopusmessage.h < prev    next >
C/C++ Source or Header  |  2000-02-28  |  2KB  |  87 lines

  1. /*
  2.  
  3. Directory Opus 4
  4. Original GPL release version 4.12
  5. Copyright 1993-2000 Jonathan Potter
  6.  
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License
  9. as published by the Free Software Foundation; either version 2
  10. of the License, or (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. All users of Directory Opus 4 (including versions distributed
  22. under the GPL) are entitled to upgrade to the latest version of
  23. Directory Opus version 5 at a reduced price. Please see
  24. http://www.gpsoft.com.au for more information.
  25.  
  26. The release of Directory Opus 4 under the GPL in NO WAY affects
  27. the existing commercial status of Directory Opus 5.
  28.  
  29. */
  30.  
  31. #ifndef DOPUS_MESSAGE
  32. #define DOPUS_MESSAGE
  33.  
  34. #define DOPUSMSG_GETVIS        1
  35. #define DOPUSMSG_UPDATEDRIVE   2
  36. #define DOPUSMSG_GETNEXTFILE   3
  37. #define DOPUSMSG_UNSELECTFILE  4
  38. #define DOPUSMSG_GETPRINTDIR   5
  39.  
  40. struct DOpusMessage {
  41.     struct Message msg;
  42.     int command;
  43.     APTR data;
  44. };
  45.  
  46. struct VisInfo {
  47.     char vi_fg,vi_bg;
  48.     char vi_shine,vi_shadow;
  49.     struct TextFont *vi_font;
  50.     struct Screen *vi_screen;
  51.     char vi_stringcol[2];
  52.     char vi_activestringcol[2];
  53.     ULONG vi_flags;
  54.     char *vi_language;
  55. };
  56.  
  57. #define VISF_8POINTFONT 1
  58. #define VISF_WINDOW     2
  59. #define VISF_BORDERS    (1<<16)
  60.  
  61. struct DOpusArgsList {
  62.     char *single_file;
  63.     int   file_window;
  64.     APTR  file_list;
  65.     APTR  last_select;
  66.     char *file_data;
  67. };
  68.  
  69. struct PrintDirData {
  70.     int win;
  71.     char titlebuf[512];
  72.     struct Directory *entry;
  73.     int onlysel;
  74. };
  75.  
  76. struct DirWindowPars {
  77.     char top_name[32];
  78.     int offset;
  79.     int hoffset;
  80.     char *reselection_list;
  81.     ULONG reselection_size;
  82.     UBYTE reselection_win;
  83.     struct DirectoryWindow *reselection_dir;
  84. };
  85.  
  86. #endif
  87.